package com.curd.tk.business.entity;

import java.util.Date;
import lombok.*;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Table(name = "dev_user")
public class User implements Serializable {
    protected static final long serialVersionUID = 1L;

    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;

    private String name;

    private Integer age;

    private String motto;

    private Date createTime;
    private Date updateTime;
}
